package team.stride.tabs.records;

import java.util.ArrayList;

import team.stride.database.crud.results.ResultsItem;

public class ReportSpeed
{
	private ArrayList<ResultsItem> results;

	public ReportSpeed(ArrayList<ResultsItem> rList)
	{
		this.results = rList;
	}

	public String toHTMLString()
	{
		String pl = "";
		for (ResultsItem result : results)
		{
			pl += "<h6>" + getFont1("Speed: ") + result.getTopSpeed() + " Km/h" + "<br/>" + getFont1("Userame: ")
					+ result.getUsername() + "<br/>" + getFont1("Date: ") + result.getStringDate() + "</h6>";
		}
		return pl;
	}

	final static String getFont1(String text)
	{
		return "<font color='#777777'>" + text + "</font>";
	}

	final static String getFont2(String text)
	{
		return "<font color='#fe6700'>" + text + "</font>";
	}

}
